package com.shop.storage.vo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shop.common.core.annotation.Excel;
import com.shop.storage.domain.WmsPurchaseDetail;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ClassName PurchaseResponse
 * @Description 描述
 * @Author Wen.Li
 * @Date 2024/6/25 16:09
 */
@Data
public class PurchaseResponse {
    /**
     * id
     */
    private Long id;

    /**
     * 申请人id
     */
    @Excel(name = "申请人id")
    private Long assigneeId;

    /**
     * 申请人名称
     */
    @Excel(name = "申请人名称")
    private String assigneeName;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 优先级
     */
    @Excel(name = "优先级")
    private Integer priority;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 仓库id
     */
    @Excel(name = "仓库id")
    private Long wareId;

    /**
     * 供应商id
     */
    @Excel(name = "供应商id")
    private Long supplierId;

    /**
     * 申请时间
     */
    @Excel(name = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 申请时间
     */
    @Excel(name = "最终修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     *价格
     */
    @Excel(name = "价格")
    private BigDecimal amount;

    /**
     *供应商
     */
    @Excel(name = "供应商")
    private String supplierName;


    /**
     *仓库
     */
    @Excel(name = "仓库")
    private String name;

    /**
     * 采购详情
     */
    private List<PurchaseDetailResponse> purchaseDetailResponses;

}
